package com.jxk.springcloud.service;

import com.jxk.springcloud.entities.CommonResult;
import com.jxk.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @ClassName : PaymentFallbackService  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-28 18:10  //时间
 */
@Component
public class PaymentFallbackService implements PaymentService
{
    @Override
    public CommonResult<Payment> paymentSQL(Long id)
    {
        return new CommonResult<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
